entry, textview: Use a dedicated style class for magnifier
authorMatthias Clasen <mclasen@redhat.com>
Mon, 2 Nov 2015 17:40:38 +0000 (12:40 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 2 Nov 2015 17:40:38 +0000 (12:40 -0500)
This will free up "osd" as an application-level style class,
and lets us style magnifiers differently.

gtk/gtkentry.c
gtk/gtktextview.c

index 6d9022d340b1a6048f99f884593f4420cbb6ab98..e1d7ab1d09cd434f298e984bcfcf64cfc723eab1 100644 (file)
@@ -2728,7 +2728,7 @@ gtk_entry_ensure_magnifier (GtkEntry *entry)
   _gtk_magnifier_set_magnification (GTK_MAGNIFIER (priv->magnifier), 2.0);
   priv->magnifier_popover = gtk_popover_new (GTK_WIDGET (entry));
   gtk_style_context_add_class (gtk_widget_get_style_context (priv->magnifier_popover),
-                               GTK_STYLE_CLASS_OSD);
+                               "magnifier");
   gtk_popover_set_modal (GTK_POPOVER (priv->magnifier_popover), FALSE);
   gtk_container_add (GTK_CONTAINER (priv->magnifier_popover),
                      priv->magnifier);
index 86c28f3093175bdf1ceef6464df244b63e227082..719096fb16e3949aef22d5f9dfd34c1271d7dc65 100644 (file)
@@ -1759,7 +1759,7 @@ _gtk_text_view_ensure_magnifier (GtkTextView *text_view)
   _gtk_magnifier_set_magnification (GTK_MAGNIFIER (priv->magnifier), 2.0);
   priv->magnifier_popover = gtk_popover_new (GTK_WIDGET (text_view));
   gtk_style_context_add_class (gtk_widget_get_style_context (priv->magnifier_popover),
-                               GTK_STYLE_CLASS_OSD);
+                               "magnifier");
   gtk_popover_set_modal (GTK_POPOVER (priv->magnifier_popover), FALSE);
   gtk_container_add (GTK_CONTAINER (priv->magnifier_popover),
                      priv->magnifier);